package com.wcx.application.mapper;

import com.wcx.application.domian.AdminBean;
import com.wcx.application.domian.StudentBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {


    List<StudentBean> getList();

    int update(StudentBean studentBean);

    int delete(int id);

    int updateAvatarById(String originalFilename, int id);

    int create(StudentBean studentBean);

    List<StudentBean> searchList(StudentBean studentBean);

    int updateAvatarByUserName(String originalFilename, String username);

    StudentBean login(StudentBean studentBean);

    int search(String username);
}
